<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="${book.bookName}的个人读书笔记">
    <meta name="keywords" content="${book.bookName},读书,笔记,源码">
    <title>${book.bookName}-燕归来兮</title>
    <#include "../common/link.ftl"/>
    <style>
        .media:hover {
            background-color: #EFEFEF;
        }

        .subtitle {
            margin: 10px 0 10px 0;
            color: #0C1021;
        }

        #articleList a {
            text-decoration: none;
            margin: 0 0 20px 20px;
            letter-spacing: 1px;
        }

        #articleList a:before {
            content: "• ";
        }

        @media screen and (max-width: 768px) {
            .content {
                width: 100%;
            }
        }


        @media screen and (min-width: 768px) {
            .content {
                width: 80%;
            }
        }
    </style>
</head>
<body>

<section class="hero is_blue is-medium">
    <!-- Hero head: will stick at the top -->
    <div class="hero-head">
        <#include "../common/nav.ftl"/>
    </div>

    <!-- Hero content: will be in the middle -->
    <div class="hero-body">
        <div class="container has-text-centered">
            <p class="title is-size-1 mb-6">
                《${book.bookName}》目录页
            </p>
            <p>${book.remark}</p>
        </div>
    </div>

    <!-- Hero footer: will stick at the bottom -->
    <div class="hero-foot">
    </div>
</section>


<#-- 文章列表 -->
<div class="is-flex is-justify-content-center mt-4">
    <div class="columns content">
        <div class="column is-four-fifths">
            <div class="columns">
                <#--                <div class="column">-->
                <#--                    <p class="notification is-warning">正在</p>-->
                <#--                </div>-->
                <#--                <div class="column">-->
                <#--                    <p class="notification is-info">First column</p>-->
                <#--                </div>-->
                <#--                <div class="column">-->
                <#--                    <p class="notification is-success">First column</p>-->
                <#--                </div>-->
                <#--                <div class="column">-->
                <#--                    <p class="notification is-danger">First column</p>-->
                <#--                </div>-->
            </div>
            <div id="articleList" class="box">
                <#list chapters as  chapter>
                    <#if chapter.level == 0>
                        <a class="is-relative" <#if chapter.url??>href="${chapter.url!""}"</#if>>
                            <#if !chapter.url??><span class="has-text-danger">[更新中]</span></#if>${chapter.title}
                        </a>
                        <br>
                    <#elseif chapter.level != 0>
                        <h1 class="subtitle is-${chapter.level + 3}"
                            style="margin-left: ${5 * (chapter.level -3)}px">${chapter.title}</h1>
                    </#if>
                </#list>
            </div>
        </div>
        <div class="column">
            <#include "./book-recommend.ftl"/>
            <#include "../blog/github-recommend.ftl"/>
        </div>
    </div>
</div>

<#-- 尾部 -->
<#include "../common/footer.ftl"/>

</body>
</html>